package behavior.visitor.element;

import behavior.visitor.visit.Viewer;
import behavior.visitor.wujiang.Wujiang;


/**
 * 战争
 */
public class WarElement implements WujiangElement {

    public WarElement(Wujiang wujiang){
        this.wujiang = wujiang;
    }

    private Wujiang wujiang;

    public void accept(Viewer visitor) {
        visitor.visit(this);
    }

    public void getWar(){
        System.out.println(wujiang.getCamp().getCampName() + wujiang.getName() + "发动战争");
      }

}
